package com.lq.schoolshop.service.impl;

import com.lq.schoolshop.dao.LogMapper;
import com.lq.schoolshop.service.AopLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author
 * @Date2021/1/4 10:50
 * @Version V1.0
 * 为什么努力？想把钱都赚够，一心跳广场舞曲去。
 **/
@Service
public class AopLogServiceImpl implements AopLogService {

    @Autowired(required = false)
    private LogMapper logMapper;

    @Override
    public int insertinfolog(String url, String httpmethod, String path, String result, String spendtime, String methodcount) {
        return logMapper.insertinfolog(url,httpmethod,path,result,spendtime,methodcount);
    }

    @Override
    public int inserterrorlog(String url, String path, String result, String methodcount,String errormessage) {
        return logMapper.inserterrorlog(url, path, result, methodcount, errormessage);
    }


}
